{% extends "base.html" %}
{% block content %}
<h1>Welcome to MyBlog <h1>

<u><h3> Categories <h3></u>
{% for categorie in categorie %}
  <ul>
  <li> {{categorie.title }}</li>
  </ul>

{% endfor %}




  {% for post in post %}

<h3><a href="/blog/{{post.id}}">{{ post.title }}</a></h3>

<div class="post_meta">
  on {{ post.created }}
</div>

<div class="post_body">
  {{ post.body|safe|linebreaks }}  
</div>
<h4> Category: {{post.category.title}} <h4>

{% endfor %}

<u><h2> Favourite Websites <h2></u>
{% for website in website %}
  
  <a href="http://{{website.body}}">{{website.body}}</a>

{% endfor %}









<h3 href="http://127.0.0.1:8000/pages/">Visit My Pages!!<h3>
 




{% endblock %}